//
//  CellForDestinationPhoto.m
//  ProjectA
//
//  Created by dllo on 16/3/3.
//  Copyright © 2016年 刘旺辉. All rights reserved.
//

#import "CellForDestinationPhoto.h"
#import "ModelForDestinationPhoto.h"
#import <UIImageView+WebCache.h>
@interface CellForDestinationPhoto ()
@property (nonatomic, strong) UIImageView *imageView;
@end

@implementation CellForDestinationPhoto

- (void)dealloc {
    [_imageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageView];
        [_imageView release];
    }
    return self;
}
- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.imageView.frame = self.bounds;
    
}
- (void)passData:(ModelForDestinationPhoto *)model {
    
   
 
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.photo_webtrip] placeholderImage:[UIImage imageNamed:@""]];
}
@end
